<?php

namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Gift extends Model
{
    protected $connection = 'mysql';

    protected $table = 'app_gift_mall';

    protected $primaryKey = 'id';

    public $timestamps = false;


    public function __construct() {
        parent::__construct();
        $this->table = DB::connection($this->connection)->getDatabaseName() . '.' . $this->table;
    }

}
